﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Add:Calculate
    {
        private string str;

        
        public Add(int A, int B ,string Str) :base(A, B)
        {
            this.Str =str;
        }

        public string Str { get => str; set => str = value; }

        public override void DisplayResult()
        {
            base.DisplayResult();
            Console.WriteLine("两数之和为：" + (A + B));
        }
    }
}
